import express from 'express';
const router = express.Router();
/**
 * 重定向页面
 * @param  {[type]} '*'   [description]
 * @param  {[type]} (req, res,          next [description]
 * @return {[type]}       [description]
 */
router.get('*.html', (req, res, next) => {
    let renderPath = req.path.substr(1);
    return res.render(renderPath);
});

router.get('/', (req, res, next) => {
    return res.redirect("/index.html");
});

module.exports = router;
